<div id="tit_naranja">ART&Iacute;CULOS DE INTERES</div>
<table width="100%" border="0" cellspacing="3" cellpadding="3">
  <tr>
    <td class="titulo"><?php echo strtoupper($noticia['Noticia']['titulo']); ?></td>
    <tr>
    	<td>
        <span class="time"> Publicado <?php echo $time->timeAgoInWords($noticia['Noticia']['created']); ?></span>
        </td>
    </tr>
  </tr>
  <tr>
    <td class="intro"><?php echo $noticia['Noticia']['intro']; ?></td>
  </tr>
  <tr>
    <td class="intro"><?php echo $noticia['Noticia']['texto']; ?></td>
  </tr>
  </table>
<div class="comentarios form">
  <?php $session->flash(); ?>
<?php echo $form->create('Comentario');?>
	<fieldset>
 		<legend><?php __('Agregar comentario');?></legend>
	<?php
		echo $form->input('noticia_id', array('type'=>'hidden', 'value'=>$noticia['Noticia']['id']));
		echo $form->input('nombre');
		echo $form->input('email');
		echo $form->input('comentario');
	?>
    <?php echo $form->end('Submit');?>
	</fieldset>

</div>


<br />
<br />

<table width="100%" border="0" cellspacing="2" cellpadding="1">
  <tr>
    <td class="titulo"><strong>Comentarios</strong></td>
  </tr>
   <?php foreach($noticia['Comentario'] as $comentario ): 
   if($comentario['activo']):
   ?>
  <tr>
    <td><strong>Publicador por:</strong> <?php echo $comentario['nombre'] ?></td>
  </tr>
    <tr>
    <td><strong>Email: </strong><?php echo $comentario['email'] ?></td>
  </tr>
  <tr>
    <td>
    <?php echo $comentario['comentario'] ?><br  />
    <span class="time"><?php echo " ". $time->timeAgoInWords($comentario['created']); ?></span>
    <br />
    <br /></td>
  </tr>
  <?php  endif; endforeach; ?>
</table>

